﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiLian.Common.HdlHttpModel
{
    /// <summary>
    /// 实时数据响应
    /// </summary>
    public class HdlScadaSensorRealTimeResponse : HdlScadaResponseResult
    {
        public List<HdlScadaSensorRealTimeResponseData> Response { get; set; }
    }

    public class HdlScadaSensorRealTimeResponseData
    {
        /// <summary>
        /// 传感器编码
        /// </summary>
        public string code { get; set; }

        /// <summary>
        /// 上一次采集时间
        /// </summary>
        public long pre_time { get; set; }

        /// <summary>
        /// 前值
        /// </summary>
        public double pre_val { get; set; }

        /// <summary>
        /// 站点编码
        /// </summary>
        public string station { get; set; }

        /// <summary>
        /// 传感器标签
        /// </summary>
        public string tag { get; set; }

        /// <summary>
        /// 数据采集时间戳，秒
        /// </summary>
        public long time { get; set; }

        /// <summary>
        /// 数据值
        /// </summary>
        public double value { get; set; }
    }
}
